x86: Fix time_resume() to notify all domains of wallclock change.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 12 Jun 2007 08:22:06 +0000 (09:22 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 12 Jun 2007 08:22:06 +0000 (09:22 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/time.c

index 81e5598eaea40565a3190a17c2f274eef5d0190a..78fe1d4bf240e7cb676d24557f3d573032b3b671 100644 (file)
@@ -957,14 +957,12 @@ int time_suspend(void)
 
 int time_resume(void)
 {
-    u64 now_sec, tmp = init_pit_and_calibrate_tsc();
+    u64 tmp = init_pit_and_calibrate_tsc();
 
     set_time_scale(&this_cpu(cpu_time).tsc_scale, tmp);
 
     resume_platform_timer();
-    now_sec = read_platform_stime();
-    do_div(now_sec, SECONDS(1));
-    wc_sec = get_cmos_time() - now_sec;
+    do_settime(get_cmos_time(), 0, read_platform_stime());
 
     init_percpu_time();